<?php

// 6/30/2010: immanuel192 write this action for delete emails

if (!defined('EXPONENT')) exit('');
global $db;

if (exponent_permissions_check(array("administrate", "delete"),$loc)) { // for adminsitrator only
	$emails=array();
	
	if (isset($_REQUEST['email']))
		$email=$_REQUEST['email'];
	$db->delete("maillinglist","email = '{$email}'");
	echo "1";
}
else
{
	//echo SITE_404_HTML;	
    echo "0";
}
?>
